package com.lingxu.module.risk.service.impl;
import com.lingxu.module.collection.mapper.ModelCategoryMapper;
import com.lingxu.module.risk.entity.ModelCategory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ModelCategoryService {

    @Resource
    private ModelCategoryMapper modelCategoryMapper;

    public List<ModelCategory> getTopCategory() {
        return modelCategoryMapper.getTopCategory();
    }

    public List<ModelCategory> getCategoryByPid(String pid) {
        return  modelCategoryMapper.getCategoryByPid(pid);
    }
}
